/**
 * @param {Object} number
 * @param {Object} seqSize
 * 
 * 数字添加0
 * let number = 1
 * console.log(numberFormatter(number, 17)) // 01
 */
function numberFormatter (number, length = 2){
    let number2String = number + ''
    let number2Strubg_length = number2String.length

    if (number2Strubg_length > length)
        return

    let result = number2String

    for(let i = number2Strubg_length; i < length; i++) {
        result = '0' + result
    }
    return result
 }

module.exports = {
    numberFormatter
}